package c.c.k.vo;

import c.c.k.emums.EnumSuggestionType;
import c.c.k.pojo.Fund;
import c.c.k.pojo.Stock;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Created by chenck on 2022/3/19.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class FundVO extends Fund {
    private Integer index;
    private EnumSuggestionType suggestionType;
    private List<StockVO> list;
    private Double avgLoss;//平均跌幅
    public int getType(){
        return suggestionType.getValue();
    }
}
